package com.example.AnReaderDemo.bean;

/**
 * Created by Administrator on 2019/11/7 0007.
 */

public class LabelStrength {

    String labelStr = "";
    double lowStrength = 0;
    double hightStrength = 0;
    int lowCount = 0;

    int length;

    public LabelStrength(String labelStr, double lowStrength, double hightStrength, int lowCount) {
        this.labelStr = labelStr;
        this.lowStrength = lowStrength;
        this.hightStrength = hightStrength;
        this.lowCount = lowCount;
    }

    public String getLabelStr() {
        return labelStr;
    }

    public void setLabelStr(String labelStr) {
        this.labelStr = labelStr;
    }

    public double getLowStrength() {
        return lowStrength;
    }

    public void setLowStrength(double lowStrength) {
        this.lowStrength = lowStrength;
    }

    public double getHightStrength() {
        return hightStrength;
    }

    public void setHightStrength(double hightStrength) {
        this.hightStrength = hightStrength;
    }

    public int getLowCount() {
        return lowCount;
    }

    public void setLowCount(int lowCount) {
        this.lowCount = lowCount;
    }

    @Override
    public String toString() {
        length = labelStr.length();
        if (length>6) {
            return "label=" + labelStr.substring(length-6,length) + ",Count=" + lowCount + " ,lowStrength=-"+lowStrength;
        }
        else {
            return "label=" + labelStr + ",Count=" + lowCount + " ,lowStrength=-"+lowStrength;
        }
    }
}
